package com.chapter6.jiekou.demo6;



/**
 * 实现接口要重写接口中的所有抽象方法
 */
public class Dog implements Animal {
    @Override
    public void eat() {
        System.out.println("Dog eat");
    }

    @Override
    public void sleep() {
        System.out.println("Dog sleep");

    }

    public void desc(){
        System.out.println("是狗");
    }


}
